package com.syx.service.impl;

import com.syx.dao.AreaDao;
import com.syx.entity.Area;
import com.syx.service.AreaService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class AreaServiceImpl implements AreaService {
    @Resource
    private AreaDao areaDao;

    @Override
    public List areList() {
        return areaDao.areList();
    }

    @Override
    public List cityList(Integer id) {
        return areaDao.cityList(id);
    }

    @Override
    public int add(Area area) {
        return areaDao.add(area);
    }

    @Override
    public Map hx(Integer id) {
        return areaDao.hx(id);
    }

    @Override
    public int upd(Area area) {
        return areaDao.upd(area);
    }
}
